<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <h1>{{sex}}</h1>
    <label for="male">
        <input type="radio" id="male" name="sex" value="男的" v-model="sex">男
    </label>
    <label for="female">
        <input type="radio" id="female" name="sex" value="女的" v-model="sex">女
    </label>
</div>


<script src="../../js/vue.js"></script>

<script>
    const vue = new Vue({
        el: "#app",
        data: {
            message: "Hello vue,你好！",
            sex: '男的'//设置默认选中男的
        },
        methods: {
            
        }
    });
</script>
</body>
</html>